package com.sofwin.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

public class SysDept implements Serializable {

    /**
    * @Description:  父级部门名称---貌似没用上
    * @Param: * @param null:
    * @return: * @return: null
    * @Author: Mr.Xq
    * @Date: 2021/4/18 0018
    */
    private String parentName;

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column sys_dept.id
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column sys_dept.dept_code
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    private String deptCode;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column sys_dept.dept_name
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    @JsonProperty(value = "name")
    private String deptName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column sys_dept.flag
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    private Integer flag;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column sys_dept.parent_id
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    @JsonProperty(value = "pid")
    private Integer parentId;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column sys_dept.id
     *
     * @return the value of sys_dept.id
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column sys_dept.id
     *
     * @param id the value for sys_dept.id
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column sys_dept.dept_code
     *
     * @return the value of sys_dept.dept_code
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public String getDeptCode() {
        return deptCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column sys_dept.dept_code
     *
     * @param deptCode the value for sys_dept.dept_code
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode == null ? null : deptCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column sys_dept.dept_name
     *
     * @return the value of sys_dept.dept_name
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public String getDeptName() {
        return deptName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column sys_dept.dept_name
     *
     * @param deptName the value for sys_dept.dept_name
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column sys_dept.flag
     *
     * @return the value of sys_dept.flag
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public Integer getFlag() {
        return flag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column sys_dept.flag
     *
     * @param flag the value for sys_dept.flag
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column sys_dept.parent_id
     *
     * @return the value of sys_dept.parent_id
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column sys_dept.parent_id
     *
     * @param parentId the value for sys_dept.parent_id
     *
     * @mbg.generated Fri Apr 16 15:12:30 CST 2021
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}